﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/site.master" AutoEventWireup="true"
    CodeFile="TheNap.aspx.cs" Inherits="administrator_TheNap" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            color: #FF0000;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%">
        <div style="text-align: center">
            Mệnh Giá:
            <asp:DropDownList ID="DDL_MenhGia" runat="server">
                <asp:ListItem Value="0">Tất cả</asp:ListItem>
                <asp:ListItem Value="100000">100.000 Đ</asp:ListItem>
                <asp:ListItem Value="200000">200.000 Đ</asp:ListItem>
                <asp:ListItem Value="500000">500.000 Đ</asp:ListItem>
                <asp:ListItem Value="1000000">1.000.000 Đ</asp:ListItem>
                <asp:ListItem Value="2000000">2.000.000 Đ</asp:ListItem>
            </asp:DropDownList>
            &nbsp;Trạng thái:
            <asp:DropDownList ID="DDL_Status" runat="server">
                <asp:ListItem Value="ALL">Tất cả</asp:ListItem>
                <asp:ListItem Value="NOT">Chưa sử dụng</asp:ListItem>
                <asp:ListItem Value="OK">Đã dùng</asp:ListItem>
            </asp:DropDownList>
            &nbsp;<asp:Button ID="BT_Search" runat="server" Text="Tìm kiếm" OnClick="BT_Search_Click" />
        </div>
        <div style="text-align: center;width: 100%">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                Width="90%" HorizontalAlign="Center" AllowPaging="True" 
                onpageindexchanging="GridView1_PageIndexChanging" PageSize="20">
                <Columns>
                    <asp:BoundField DataField="code" HeaderText="Mã thẻ" />
                    <asp:BoundField DataField="VND" HeaderText="Mệnh giá" 
                        DataFormatString="{0:N0} VNĐ" >
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField DataField="UserId" HeaderText="Người dùng" >
                    <ItemStyle HorizontalAlign="Right" />
                    </asp:BoundField>
                    <asp:BoundField DataField="datecreate" HeaderText="Ngày tạo" />
                </Columns>
                <EmptyDataTemplate>
                    <center class="style1">Không có thẻ nạp nào!</center>
                </EmptyDataTemplate>
                <PagerStyle ForeColor="Lime" HorizontalAlign="Right" VerticalAlign="Middle" />
            </asp:GridView>
        </div>
        <div style="text-align: center; padding-top: 20px">
            <hr style="width: 80%" />
            Tạo thẻ nạp: Mệnh Giá:
            <asp:DropDownList ID="DDL_MenhGiaCreate" runat="server">
                <asp:ListItem Value="100000">100.000 Đ</asp:ListItem>
                <asp:ListItem Value="200000">200.000 Đ</asp:ListItem>
                <asp:ListItem Value="500000">500.000 Đ</asp:ListItem>
                <asp:ListItem Value="1000000">1.000.000 Đ</asp:ListItem>
                <asp:ListItem Value="2000000">2.000.000 Đ</asp:ListItem>
            </asp:DropDownList>
            &nbsp;Số lượng thẻ:
            <asp:DropDownList ID="DDL_SoLuong" runat="server">
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>20</asp:ListItem>
                <asp:ListItem>50</asp:ListItem>
            </asp:DropDownList>
            &nbsp;<asp:Button ID="BT_Create" runat="server" Text="Tạo thẻ" OnClick="BT_Create_Click" />
        </div>
    </div>
</asp:Content>
